#!/bin/bash

cd build/

sdcc -c ../main.c
sdcc -c ../sht10.c
sdcc -c ../tm1668.c

sdcc main.rel sht10.rel tm1668.rel

packihx main.ihx > main.hex
objcopy -I ihex -O binary main.hex main.bin
cp main.bin /tmp/
echo done
